]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceAnimation: Notify 'progress' property properly
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 10 Aug 2023 19:57:47 +0000 (16:57 -0300)
committerMarge Bot <marge-bot@gnome.org>
Fri, 11 Aug 2023 16:51:13 +0000 (16:51 +0000)
The getter of the MonitorGroup's 'progress' property sets
some values based on it, but doesn't notify the property
change.

Fix that by calling this.notify('progress') when the setter
is called.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2881>

js/ui/workspaceAnimation.js

index ab405b35d72e9908448cbdb6e66dc396588f5554..93be07e2cd1e2b5c77a1e7f822a90223cffef123 100644 (file)
@@ -214,6 +214,8 @@ const MonitorGroup = GObject.registerClass({
             this._container.x = Math.round(p * this.baseDistance);
         else
             this._container.x = -Math.round(p * this.baseDistance);
+
+        this.notify('progress');
     }
 
     get index() {